home *** CD-ROM | disk | FTP | other *** search
- on createCDpath volumeName, diskIDfilePath
- global gCDpath
- if the machineType = 256 then
- openXLib(the pathName & "fileio.dll")
- repeat with i = 67 to 90
- set drive to numToChar(i)
- set fullPath to string(drive & ":\" & diskIDfilePath)
- set myFile to FileIO(mnew, "read", fullPath)
- if objectp(myFile) then
- myFile(mdispose)
- return drive & ":"
- exit
- end if
- end repeat
- return 0
- else
- set fullPath to volumeName & ":" & diskIDfilePath
- set myFile to FileIO(mnew, "read", fullPath)
- if objectp(myFile) then
- myFile(mdispose)
- return volumeName & ":"
- exit
- end if
- return 0
- end if
- end
-